how to delete last N columns of dataframe

26

drop the last row of a dataframe -

df.drop(df.tail(n).index,inplace=True) # drop last n rows

python array delete last column -

b = np.delete(a, -1, axis=1)

Comments

Submit
0 Comments